﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AKBGame.Util
{
    public class MemberColorHelper
    {
        public class Color
        {
            public const int Red = 1;
            public const int Blue = 2;
            public const int Green = 3;
            public const int Yellow = 4;
            public const int Purple = 5;
        }

        public static string GetMemberColor(int color)
        {
            switch (color)
            {
                case Color.Red: return "Red";
                case Color.Blue: return "Blue";
                case Color.Green: return "Green";
                case Color.Yellow: return "Yellow";
                case Color.Purple: return "Purple";
                default: return "?";
            }
        }

        public static int GetMemberColor(string color)
        {
            if (color == "Red")
                return Color.Red;
            else if (color == "Blue")
                return Color.Blue;
            else if (color == "Green")
                return Color.Green;
            else if (color == "Yellow")
                return Color.Yellow;
            else if (color == "Purple")
                return Color.Purple;
            else
                return -1;
        }
    }
}
